/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 殇
 * Date: 2025-05-28
 * Time: 15:37
 */
public class TestDemo {
    public int x;
    public String s1;
    public int y=1;
    public String s2="1";



    //public int z=1;
    //z=2;    报错

    public void print(){
        System.out.println("x="+ x+" s1="+s1);
        System.out.println("y="+ y+" s2="+s2);

    }
    public static void main(String[] args) {
        TestDemo t=new TestDemo();
        t.print();
    }

}
